Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

WIP: localdev publishing #462

Merged
merged 2 commits into from
May 2, 2019
Merged

WIP: localdev publishing #462

merged 2 commits into from
May 2, 2019

Conversation

Benny1007
Copy link
Contributor

For discussion...

Amendments to Build.psm1

  • Add LocalDevInstall switch to Install-PublishedModule
  • Logic to install the module from ./dist to powershell modules path under version.9999 e.g. 2.1.2.9999
  • Add function Install-DevelopmentModule that will call this function with the -LocalDevInstall switch

Amendments to .vscode file

  • Add task to run Install-Dependencies
  • Add task to run Install-DevelopmentModule
  • Add task to run Uninstall-DevelopmentModule
  • Add task to run Invoke-PowerShellGetTest

Amendments to readme.md

  • Update help to explain above.

Notes:-
Only the module version in the psd1 file in ./dist is updated with the .9999 - this will never be checked in.
Build server will never run with the -LocalDevInstall switch.
The zip artifact published to ./dist is never modified.

@edyoung
Copy link
Contributor

edyoung commented Apr 16, 2019

Thanks @Benny1007 . I haven't tried this but looks reasonable. Could you look at the Travis CI test failures to see if they may be related to the change?

BTW I typically change $env:psmodulepath to include $pwd\src rather than installing the module while working on it.

@edyoung edyoung merged commit 459695a into PowerShell:development May 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants